package org.jdcenter.rmi.impl;

import java.io.*;

public class ExceptionFormatter {
    public static String toString(Throwable e) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        e.printStackTrace(pw);
        pw.close();
        return sw.toString();
    }
}

